package cn.edu.fzu.homemaking.sso.service;

import java.util.List;
import java.util.Set;

import cn.edu.fzu.homemaking.sso.domain.entity.Resource;
import cn.edu.fzu.homemaking.common.TreeVO;
import cn.edu.fzu.homemaking.sso.domain.enums.StatusEnum;

public interface ResourceService {

    Set<TreeVO<Resource>> list(Long userId, String name, Long pid, StatusEnum status, boolean detail);


    void grant(Long roleId, List<Long> resourceIds);


    /** 查询当前用户所有的授权资源 **/
    List<String> listResourceByUserId(Long userId);


    /** 查询当前角色所有的授权资源 **/
    List<Long> listResourceIdByRoleId(Long roleId);

}
